package vo;

import daoImpls.GoodDAOImpl;

public class Order extends PetObject {
    private String oid;
    private User user;
    private Good good;
    private int oNum;
    private int status;

    public Order() {
    }
    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Good getGood() {
		return good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public int getoNum() {
        return oNum;
    }

    public void setoNum(int oNum) {
        this.oNum = oNum;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "order{" +
                "oid='" + oid + '\'' +
                ", uid='" + user + '\'' +
                ", gid='" + good + '\'' +
                ", oNum=" + oNum +
                ", status=" + status +
                '}';
    }
}
